using System;
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;

namespace Efficient
{
    public class PasswordEncoder
    {
        public static string GetMD5Encode(string text)
        {
            using (MD5CryptoServiceProvider hashmd5 = new MD5CryptoServiceProvider())
            {
                return BitConverter.ToString(hashmd5.ComputeHash(Encoding.Default.GetBytes(text))).Replace("-", "");
            }
        }
    }
}
